| C# |
|---|
| public Boolean GetBool(String keyName) |
| C# |
|---|
// App.Config file. // <configuration> // <appSettings> // <add key="UseLocal" value="true" /> // </appSettings> // </configuration> using LJCNetCommon; var appSettings = new AppSettings("AppName.exe.config"); bool useLocal = appSettings.GetBool("UseLocal"); |